package com.wingscode.modules.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wingscode.common.utils.PageUtils;
import com.wingscode.modules.app.form.LoginForm;
import com.wingscode.modules.common.entity.UserEntity;

import java.util.List;
import java.util.Map;


/**
 * 用户
 *
 * @author CrazyHuskar
 * @email jiangshengkang@wingscode.com
 * @date 2019-07-24 14:50:19
 */
public interface UserService extends IService<UserEntity> {
    /**
     * 用户登录
     * @param form    登录表单
     * @return        返回用户ID
     */
    UserEntity login(LoginForm form);
    UserEntity loginByCode(String openId);
    UserEntity queryByMobile(String mobile);
    PageUtils queryPage(Map<String, Object> params);
	boolean setRoleUpdate(Long id);
	boolean cancelRoleUpdate(Long id);

	void deleteById(Integer id);

    PageUtils getUserList(Map<String, Object> params);

    List<UserEntity> getListByAgent(Integer agentId);
}

